package com.twetec.cms.common.util.list;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ListUtils {

    public static List<Long> getIdList(String userIds){

        String[] userIdArr = userIds.split(",");

        List<String> idList = Arrays.asList(userIdArr);

        List<Long> userIdList = new ArrayList<>();

        for (String s : idList){
            Long l = Long.parseLong(s);
            userIdList.add(l);
        }
        return userIdList;
    }
}
